<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>身高和体重</title>
</head>
<body>
<!-- 4、开发一款软件，根据公式（身高 -108）*2 = 体重，
    可以有10斤左右的浮动。来观察测试者体重是否合适
	var height =	
    var weight = -->
    <script>
var height =169;	
  var weight =102;
  if(weight-10<(height-108)*2<weight+10){
         document.write(true);
     }
     else{
         document .write(false);
     }

    </script>
    
</body>
</html>